package com.pharmacy.pharmacy.domain;


import java.util.Date;

/**
 * 【】对象 user
 * 
 * @author 
 * @date 2025-05-08
 */
public class User 
{

    /** 主键，自增ID */
    private Long id;

    /** 用户名 */
    private String userName;

    /** 登录密码 */
    private String password;

    /** 性别（0男，1女） */
    private Long gender;

    /** 联系电话 */
    private String phone;

    /** 邮箱 */
    private String email;


   private Date createTime;

    public User() {
    }

    public User(Long id, String userName, String password, Long gender, String phone, String email, Date createTime) {
        this.id = id;
        this.userName = userName;
        this.password = password;
        this.gender = gender;
        this.phone = phone;
        this.email = email;
        this.createTime = createTime;
    }

    /**
     * 获取
     * @return id
     */
    public Long getId() {
        return id;
    }

    /**
     * 设置
     * @param id
     */
    public void setId(Long id) {
        this.id = id;
    }

    /**
     * 获取
     * @return userName
     */
    public String getUserName() {
        return userName;
    }

    /**
     * 设置
     * @param userName
     */
    public void setUserName(String userName) {
        this.userName = userName;
    }

    /**
     * 获取
     * @return password
     */
    public String getPassword() {
        return password;
    }

    /**
     * 设置
     * @param password
     */
    public void setPassword(String password) {
        this.password = password;
    }

    /**
     * 获取
     * @return gender
     */
    public Long getGender() {
        return gender;
    }

    /**
     * 设置
     * @param gender
     */
    public void setGender(Long gender) {
        this.gender = gender;
    }

    /**
     * 获取
     * @return phone
     */
    public String getPhone() {
        return phone;
    }

    /**
     * 设置
     * @param phone
     */
    public void setPhone(String phone) {
        this.phone = phone;
    }

    /**
     * 获取
     * @return email
     */
    public String getEmail() {
        return email;
    }

    /**
     * 设置
     * @param email
     */
    public void setEmail(String email) {
        this.email = email;
    }

    /**
     * 获取
     * @return createTime
     */
    public Date getCreateTime() {
        return createTime;
    }

    /**
     * 设置
     * @param createTime
     */
    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public String toString() {
        return "User{id = " + id + ", userName = " + userName + ", password = " + password + ", gender = " + gender + ", phone = " + phone + ", email = " + email + ", createTime = " + createTime + "}";
    }
}
